.class public Lcom/netease/newsreader/model/MyComment;
.super Ljava/lang/Object;
.source "MyComment.java"


# static fields
.field public static final FAILED:Ljava/lang/String; = "0"

.field public static final PARAM_AC:Ljava/lang/String; = "ac"

.field public static final PARAM_AP:Ljava/lang/String; = "ap"

.field public static final PARAM_BD:Ljava/lang/String; = "bd"

.field public static final PARAM_ERROR:Ljava/lang/String; = "error"

.field public static final PARAM_FN:Ljava/lang/String; = "fn"

.field public static final PARAM_FQ:Ljava/lang/String; = "fq"

.field public static final PARAM_FU:Ljava/lang/String; = "fu"

.field public static final PARAM_IB:Ljava/lang/String; = "ib"

.field public static final PARAM_LIST:Ljava/lang/String; = "sList"

.field public static final PARAM_PAGE:Ljava/lang/String; = "page"

.field public static final PARAM_PAGE_SIZE:Ljava/lang/String; = "pageSize"

.field public static final PARAM_REPLY_COUNT:Ljava/lang/String; = "replycount"

.field public static final PARAM_SI:Ljava/lang/String; = "si"

.field public static final PARAM_SUCCESS:Ljava/lang/String; = "success"

.field public static final PARAM_USERID:Ljava/lang/String; = "userId"

.field public static final URL_MYCOMMENT:Ljava/lang/String; = "http://comment.163.com/reply/api/myreplys.jsp?userId=%s&page=%d&pageSize=%d"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getMyColumnsByCategory(Landroid/content/Context;Ljava/lang/String;II)Ljava/util/Map;
    .locals 9
    .parameter "context"
    .parameter "userId"
    .parameter "page"
    .parameter "pageSize"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "II)",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    .prologue
    .line 61
    const/4 v2, 0x0

    .line 63
    .local v2, result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v5, "http://comment.163.com/reply/api/myreplys.jsp?userId=%s&page=%d&pageSize=%d"

    const/4 v6, 0x3

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object p1, v6, v7

    const/4 v7, 0x1

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    aput-object v8, v6, v7

    const/4 v7, 0x2

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    aput-object v8, v6, v7

    invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    .line 64
    .local v4, url:Ljava/lang/String;
    const/16 v5, 0x7530

    invoke-static {v4, v5, p0}, Lcom/netease/newsreader/util/HttpUtils;->getResponseFromGetUrl(Ljava/lang/String;ILandroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    .line 66
    .local v3, str:Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 68
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 69
    .local v1, json:Lorg/json/JSONObject;
    invoke-static {v1}, Lcom/netease/newsreader/util/ModelUtils;->json2Map(Lorg/json/JSONObject;)Ljava/util/Map;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 77
    .end local v1           #json:Lorg/json/JSONObject;
    :cond_0
    :goto_0
    if-nez v2, :cond_1

    .line 78
    new-instance v2, Ljava/util/HashMap;

    .end local v2           #result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 79
    .restart local v2       #result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v5, "success"

    const-string v6, "0"

    invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 80
    const-string v5, "error"

    const v6, 0x7f0b00ab

    invoke-virtual {p0, v6}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 84
    :cond_1
    return-object v2

    .line 70
    :catch_0
    move-exception v0

    .line 71
    .local v0, e:Ljava/lang/Exception;
    new-instance v2, Ljava/util/HashMap;

    .end local v2           #result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 72
    .restart local v2       #result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v5, "success"

    const-string v6, "0"

    invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 73
    const-string v5, "error"

    const v6, 0x7f0b00ac

    invoke-virtual {p0, v6}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method
